import type { UserInfo } from "./users";

export type TComment = {
    content: string;
    id: number;
    up_num: number;
    updateDate: string;
    count: number;
    toUser: Pick<UserInfo, 'id' | 'avatar' | 'username'>;
    user: Pick<UserInfo, 'id' | 'avatar' | 'username'>;
    replyList: Omit<TComment, 'replyList'>[]
}

export type TArtical = {
    id: number;
    title: string;
    content: string;
    type: number;
    images: string;
    cover: string;
    thumbUpsCount: number;
    isThumb: boolean;
    updateDate: string;
    commentsCount: number;
    user: Pick<UserInfo, 'id' | 'avatar' | 'username'>;
}